package com.quan.bookmall.dto.response;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

@Data
public class StatisticsResponse {
    
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class BookSalesItem {
        private String bookName;
        private Long totalQuantity;
    }
    
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class UserConsumptionItem {
        private Long userId;
        private String username;
        private BigDecimal totalAmount;
    }
    
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class UserBookStatItem {
        private String bookName;
        private Integer quantity;
        private BigDecimal price;
        private BigDecimal subtotal;
    }
    
    private List<BookSalesItem> bookSalesStatistics;
    private List<UserConsumptionItem> userConsumptionStatistics;
    private List<UserBookStatItem> userBookStatistics;
    private Integer totalOrders;
    private Integer totalBooks;
    private BigDecimal totalAmount;
} 